<template>
  <div>
    <GTable
      @size-change="handleSizeChange"
      @current-change="handleCurrentChange"
      usePager
      :pager="frontPager"
      :data="tableData"
      stripe
      border
      :columns="columns"
      :conf="tableConf"
    >
      <template #reg_time="{ row }">
        <span>{{ row.reg_time | birthday }}</span>
      </template>
      <template #role_name="{ row }">
        <span>{{ row.role_name | role }}</span>
      </template>
    </GTable>
  </div>
</template>

<script>
import { columns, tableConf } from "./list";
import pager from "@/mixins/pager";
import crud from "@/mixins/crud";
export default {
  mixins: [crud, pager], data() {
    return {
      columns,
      tableConf
    };
  },
  created(){
    this.load();
  },
  methods: {
    beforeInit() {
      this.loadUrl = "/user/list?type=new";
      return true;
    }
  },
  
 
};
</script>